package com.reggie.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reggie.pojo.AddressBook;

import java.util.List;

public interface AddressBookService {
    List<AddressBook> selectAll();

    int updateDefault(Long id);

    AddressBook getDefault();

    AddressBook getAddressById(Long id);

    Boolean updateAddress(AddressBook addressBook);

    AddressBook selectByUserId(Long userId);

    AddressBook selectById(Long id);

    void addAddress(AddressBook addressBook);

    int deleteById(Long id);
}
